.popup {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;

  .mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    // transition: all 0.3s;
  }

  .content {
    position: fixed;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    // transition: all 195ms cubic-bezier(0.4, 0, 0.6, 1);
  }
}

.left,
.right,
.bottom {
  .content {
    // display: flex;
    // flex-direction: column;
    // max-height: 100vh;
    .main {
      // flex: 1;
      // overflow-y: auto;
    }
    .footer {
      // position: absolute;
      // bottom: 0;
      // left: 0;
      // right: 0;
    }
  }
}

/* modifiers */
.left {
  .content {
    left: 0;
    transform: translateX(-100%);
  }
}

.right {
  .content {
    right: 0;
    transform: translateX(100%);
  }
}

.top {
  .content {
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
  }
}

.bottom {
  .content {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
  }
}

.show {
  .mask {
    opacity: 1;
  }
  .content {
    opacity: 1;
    transform: translateX(0%);
    transition: all 225ms cubic-bezier(0, 0, 0.2, 1);
  }
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  .content {
    transform: scale(0.8);
  }
}
